package de.tum.in.eist.poll.shared.beans;

import java.util.TreeMap;

/**
 * A sequence of questions for the user to answer.
 * 
 * @author The EIST-POLL-21 team.
 *
 */
public class Questions {
	
	/**
	 * Map from question index to Question
	 */
	private TreeMap<Integer,Question> questions;
	
	public Questions(TreeMap<Integer,Question> questions) {
		this.questions = questions;
	}
	
	/**
	 * @return The {@link Question} at the i-th position, i=1,2,... or
	 * 		   null if no Answer is available
	 */
	public Question get(Integer index) {
		return questions.get(index);
	}
}
